/*
 * @Author: lg9527 13691080728@126.com
 * @Date: 2024-02-19 11:18:38
 * @LastEditors: lg9527 13691080728@126.com
 * @LastEditTime: 2024-03-04 12:00:50
 * @FilePath: \cmjyxpcfront\src\router\routes\modules\demo\threePure.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 四清三停四建设
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/threePure',
  name: 'ThreePure',
  component: LAYOUT,
  redirect: '/threePure/manager',
  meta: {
    orderNo: 205,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.threePure.root'),
    roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
    //  userGroups: ['Admin', 'FireControl', 'Housing', 'Police'],
    userGroups: ['FireControl'],
  },
  children: [
    // 按区级统计自查工作进展统计
    {
      path: 'count',
      name: 'threePureCount',
      meta: {
        title: t('routes.demo.threePure.threePureCount'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        hideChildrenInMenu: true,
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/village/threePure/count/index.vue'),
      children: [
        {
          path: 'townbaseHourseList',
          name: 'townbaseHourseList',
          meta: {
            hideMenu: true,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '房主自查情况（乡镇）',
          },
          component: () => import('/@/views/village/threePure/count/component/townBaseHourse.vue'),
        },
        {
          path: 'villagebaseHourseList',
          name: 'villagebaseHourseList',
          meta: {
            hideMenu: true,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '房主自查情况（村级）',
          },
          component: () =>
            import('/@/views/village/threePure/count/component/villagebaseHourse.vue'),
        },
        {
          path: 'selfexaminationfindings',
          name: 'selfexaminationfindings',
          meta: {
            hideMenu: true,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '房主自查台账',
          },
          component: () => import('/@/views/village/threePure/count/component/hourselist.vue'),
        },
      ],
    },
    // 统计各村自查工作进展统计
     {
      path: 'cjcount',
      name: 'cjworkstatic',
      meta: {
        title: t('routes.demo.threePure.cjworkstatic'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/village/threePure/cjworkstatic/index.vue'),
      children: [
        {
          path: 'hourselist',
          name: 'hourselist',
          meta: {
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
          hideMenu: true,
            userGroups: ['Admin', 'FireControl'],
            title: '房主自查台账',
          },
          component: () =>
            import('/@/views/village/threePure/cjworkstatic/component/hourselist.vue'),
        },
      ],
    },
  ],
};

export default charts;
